Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsoleUI prompt to delete non-empty folders after uninstall #4066

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Mar 23, 2024

Motivation

#2962 added a prompt in GUI to ask the user whether to delete folders that contain only files not created by CKAN after uninstalling a mod, because such folders can make ModuleManager :NEEDS[] clauses behave as if a mod is installed when it's not.

Currently this isn't available in ConsoleUI, even though the concern about leftover folders and ModuleManager still applies.

Changes

Now ConsoleUI presents a screen after uninstallation to ask about these directories as well, if any are found:

image

(The GameData/Squad and GameData/SquadExpansion folders would never be included here in practice. I was just using them for testing.)

Fixes #3484.

@HebaruSan HebaruSan added Enhancement New features or functionality ConsoleUI Issues affecting the interactive console UI labels Mar 23, 2024
@HebaruSan HebaruSan merged commit 69224fa into KSP-CKAN:master Mar 23, 2024
8 checks passed
@HebaruSan HebaruSan deleted the feature/consoleui-del-dirs branch March 23, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ConsoleUI Issues affecting the interactive console UI Enhancement New features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prompt user to delete non-empty folders after uninstall in the ConsoleUI
1 participant